package proxyModel;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class MyinvocationHandler implements InvocationHandler {

    private Object obj;

    public MyinvocationHandler(Object obj){
        this.obj=obj;
    }

    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        Object result=method.invoke(obj,args);
        return result;
    }
}
